<!DOCTYPE html>
<html>

<head>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/monaco-editor/0.40.0/min/vs/loader.js"></script>
</head>

<body>
    <div id="container" style="height:100vh;"></div>
    <script>
        require.config({ paths: { vs: 'https://cdnjs.cloudflare.com/ajax/libs/monaco-editor/0.40.0/min/vs' } });
        require(['vs/editor/editor.main'], () => {
            const editor = monaco.editor.create(document.getElementById('container'), {
                language: 'javascript',
                theme: 'vs-dark',
            });
            window.editor = editor;
        });
    </script>
</body>

</html>